package org.tinygroup.websample;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.tinygroup.bizframe.service.inter.dto.complex.UserInfo;

@Controller
@RequestMapping("/user")
public class ResponseEntityTest {

	 @RequestMapping("/responseEntity")
	  public ResponseEntity<UserInfo> responseEntity(){
		 UserInfo user=new UserInfo();
		  user.setUserName("的说法是非法");
		  return new ResponseEntity<UserInfo>(user, HttpStatus.OK);
		  
	  }
	
}
